package com.ruoyi.archives.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.archives.mapper.SysTeacherStudyworkMapper;
import com.ruoyi.archives.domain.SysTeacherStudywork;
import com.ruoyi.archives.service.ISysTeacherStudyworkService;

/**
 * 教师工作教育经历Service业务层处理
 * 
 * @author gzhankh
 * @date 2022-03-06
 */
@Service
public class SysTeacherStudyworkServiceImpl implements ISysTeacherStudyworkService 
{
    @Autowired
    private SysTeacherStudyworkMapper sysTeacherStudyworkMapper;

    /**
     * 查询教师工作教育经历
     * 
     * @param id 教师工作教育经历主键
     * @return 教师工作教育经历
     */
    @Override
    public SysTeacherStudywork selectSysTeacherStudyworkById(String id)
    {
        return sysTeacherStudyworkMapper.selectSysTeacherStudyworkById(id);
    }

    /**
     * 查询教师工作教育经历列表
     * 
     * @param sysTeacherStudywork 教师工作教育经历
     * @return 教师工作教育经历
     */
    @Override
    public List<SysTeacherStudywork> selectSysTeacherStudyworkList(SysTeacherStudywork sysTeacherStudywork)
    {
        return sysTeacherStudyworkMapper.selectSysTeacherStudyworkList(sysTeacherStudywork);
    }

    /**
     * 新增教师工作教育经历
     * 
     * @param sysTeacherStudywork 教师工作教育经历
     * @return 结果
     */
    @Override
    public int insertSysTeacherStudywork(SysTeacherStudywork sysTeacherStudywork)
    {

        return sysTeacherStudyworkMapper.insertSysTeacherStudywork(sysTeacherStudywork);
    }

    /**
     * 修改教师工作教育经历
     * 
     * @param sysTeacherStudywork 教师工作教育经历
     * @return 结果
     */
    @Override
    public int updateSysTeacherStudywork(SysTeacherStudywork sysTeacherStudywork)
    {
        return sysTeacherStudyworkMapper.updateSysTeacherStudywork(sysTeacherStudywork);
    }

    /**
     * 批量删除教师工作教育经历
     * 
     * @param ids 需要删除的教师工作教育经历主键
     * @return 结果
     */
    @Override
    public int deleteSysTeacherStudyworkByIds(String[] ids)
    {
        return sysTeacherStudyworkMapper.deleteSysTeacherStudyworkByIds(ids);
    }

    /**
     * 删除教师工作教育经历信息
     * 
     * @param id 教师工作教育经历主键
     * @return 结果
     */
    @Override
    public int deleteSysTeacherStudyworkById(String id)
    {
        return sysTeacherStudyworkMapper.deleteSysTeacherStudyworkById(id);
    }
}
